/*
 * @Description:
 * @version: 1.0
 * @Author: ziwei
 * @Date: 2021-08-14 23:01:37
 * @LastEditors: ziwei
 * @LastEditTime: 2021-08-14 23:21:51
 */
import React from "react";
import {history} from 'umi'

function Login(props) {
  return (
    <div>
      <button
        onClick={() => {
          localStorage.setItem("isLogin", "true");
          if(props.location.state&&props.location.state.from){
              history.push(props.location.state.from);
          }
        }}
      >
        登录
      </button>
    </div>
  );
}

export default Login;
